//
//  WorksetUploadManager.h
//  dataGathering
//
//  Created by macmini on 15/1/30.
//  Copyright (c) 2015年 shuili. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "currentWorkSetManager.h"
#import "WorksetModel.h"

#define ROOT_URL @"http://218.94.6.92:8033/slxc.server/"
#define URL_WORKSET_UPLOAD_SINGLE ROOT_URL@"mobile/workset/upload"

@interface WorksetUploadManager : NSObject

+ (WorksetUploadManager*) sharedInstance;

- (void)uploadSingleWorkset:(workSet*)toUploadWorkset totalSyncNumber:(NSInteger)totalCount currentSyncCount:(NSInteger)currentCount;

- (void)newSyncAllWorksets;
- (void)syncAllWorksets;

- (void)syncSingleWorkset:(workSet*)toSyncWorkset totalSyncNumber:(NSInteger)totalCount currentSyncCount:(NSInteger)currentCount;

- (void)beginScheduleSync;

-(void)addNewSingleWorksetSyncTask:(workSet*)toSyncWorkset;
@end
